<form class="layui-form model-form" action="" style="width:80%;">
	<input name="id" id="id" type="hidden" value="{$info.id|default=0}">
	<div class="layui-form-item">
		<label class="layui-form-label">文章封面：</label>
		{upload:image name="cover|封面|90x90|建议上传尺寸450x450|450x450" value="isset($info['cover_url']) ? $info['cover_url'] : ''"}
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">文章标题：</label>
			<div class="layui-input-inline">
				<input name="title" value="{$info.title|default=''}" lay-verify="title" autocomplete="off" placeholder="请输入文章标题(最少10个字)" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">文章分类：</label>
			<div class="layui-input-inline">
				{itemcate:select param="cate_id|1|职级" value="isset($info['cate_id']) ? $info['cate_id'] : 0"}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">文章摘要：</label>
		<div class="layui-input-block">
			<textarea name="guide" placeholder="请输入文章摘要" lay-verify="required" class="layui-textarea">{$info.guide|default=''}</textarea>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">文章图集：</label>
		<div class="layui-input-block">
			{upload:album name="imgs|图集|90x90|20|建议上传尺寸450x450|450x450" value="isset($info['imgsList']) ? $info['imgsList'] : []"}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">文章内容：</label>
		<div class="layui-input-block">
			<textarea name="content" id="content" lay-verify="required" class="layui-textarea">{$info.content|default=''}</textarea>
			{editor:kindeditor name="content" type="default" width="100%" height="350"}
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">文章状态：</label>
			<div class="layui-input-inline">
				{common:switch name="status" title="显示|隐藏" value="isset($info['status']) ? $info['status'] : 1"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">是否置顶：</label>
			<div class="layui-input-inline">
				{common:switch name="is_top" title="置顶|不置顶" value="isset($info['is_top']) ? $info['is_top'] : 2"}
			</div>
		</div>
	</div>
	{widget:submit name="submit|立即保存,close|关闭"}
</form>
